package org.exteen.lib;

import java.util.HashMap;
import java.util.Map;

import org.exteen.exec.Tag;

public abstract class TagLibrary {

    protected final String id;
    protected final Map<String, Tag> tags = new HashMap<String, Tag>();
    
    public TagLibrary(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public final Tag getTag(String name) {
        return tags.get(name);
    }
}
